<script type="text/javascript">
		//<![CDATA[
		var _calPickDir = '/calpick/';
		var _calImageAlign = 'top';
		var _calTopDistance = 5;
		var _calImageStyle = 'margin-top:' + _calTopDistance + 'px';
		//]]>
		function umschalten(){
			if (document.getElementById('ticketart').selectedIndex == 0) {
				document.getElementById('festedauer').style.display = "none";
				document.getElementById('festerzeitraum').style.display = "block";
			}else{
				document.getElementById('festedauer').style.display = "block";
				document.getElementById('festerzeitraum').style.display = "none";
			}
		}
		</script>

		<script type="text/javascript" src="/calpick/calpick.js"></script>
<br /><br />
	<fieldset class="form-fieldset">
		<legend>Ticket Anlegen</legend>
			<div class="formularcontainer">
				<form name="ticketform" id="ticketform" action="" method="post" accept-charset="utf-8">
					<br /><br />
					<p><?php echo $this->form->getElement('name') ?></p>
					<p><?php echo $this->form->getElement('preis') ?></p>
					<?php echo '<div class="javascriptkalender">';
						echo $this->form->getElement('verfuegbar_ab');
						echo '<script type="text/javascript">
						AttachCalendarButton(document.ticketform.verfuegbar_ab);
						</script>
						</div>';?>
					<?php echo '<div class="javascriptkalender">';
						echo $this->form->getElement('verfuegbar_bis');
						echo '<script type="text/javascript">
						AttachCalendarButton(document.ticketform.verfuegbar_bis);
						</script>
						</div>';?>
					<?php echo '<div class="javascriptkalender">';
						echo $this->form->getElement('gueltig_ab');
						echo '<script type="text/javascript">
						AttachCalendarButton(document.ticketform.gueltig_ab);
						</script>
						</div>';?>
					<?php echo '<div class="javascriptkalender">';
						echo $this->form->getElement('gueltig_bis');
						echo '<script type="text/javascript">
						AttachCalendarButton(document.ticketform.gueltig_bis);
						</script>
						</div>';?>
					<p><?php echo $this->form->getElement('ticketart');?></p>
				<div id="festedauer" style = "display:none">
					<p><?php echo $this->form->getElement('dauer') ?></p>
					<p><?php echo $this->form->getElement('tage')?></p>
				</div>
				<div id="festerzeitraum"></div>
					<p><br/></p>
				<?php echo $this->form->getElement('submit') ?>
    			<a href="uebersicht">Zur&uuml;ck</a>
    			</form>
    		</div>
	</fieldset>